package com.sfac.day03.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.day03.modules.account.entity.Resource;
import com.sfac.day03.modules.common.entity.ResultEntity;
import com.sfac.day03.modules.common.entity.SearchBean;

import java.util.List;

public interface ResourceService {
    ResultEntity<Resource> insertResource(Resource resource);

    ResultEntity<Resource> updateResource(Resource resource);

    ResultEntity<Object> deleteResourceById(int id);

    Resource getResourceById(int id);

    List<Resource> getResourcesByRoleId(int roleId);

    PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
